﻿USE [NMA]
GO
/****** Object:  Table [dbo].[User]    Script Date: 04/13/2010 13:47:13 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[User](
	[ID] [uniqueidentifier] NOT NULL,
	[UserName] [nvarchar](30) NOT NULL,
	[Password] [nvarchar](1000) NOT NULL,
	[IsAlive] [bit] NOT NULL,
	[Description] [text] NULL,
	[Street] [nvarchar](30) NULL,
	[Ward] [nvarchar](20) NULL,
	[District] [nvarchar](20) NULL,
	[Role] [int] NOT NULL,
	[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_User_CreatedDate]  DEFAULT (getdate()),
	[UpdatedDate] [datetime] NULL CONSTRAINT [DF_User_UpdatedDate]  DEFAULT (getdate()),
 CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
